﻿#pragma once

#include "RealTimeView.h"
// CAutoStartDlg 对话框
class CRealTimeView;

class CAutoStartDlg : public CDialogEx
{
	DECLARE_DYNAMIC(CAutoStartDlg)

public:
	CAutoStartDlg(CRealTimeView* pParent);   // 标准构造函数
	virtual ~CAutoStartDlg();

/// 对话框数据
	enum { IDD = IDD_AUTOSTARTDLG };
	CProgressCtrl	m_Progress;
	CRealTimeView*	m_pParent;

	int		m_nAutoStartTimer;
	int		m_nTotalSec;		//总运行时间
	int		m_nHeaterSec;		//达到仪器温度的时间
	BOOL	m_bHaveFired;

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()

	void CloseWindow();
public:
	virtual BOOL OnInitDialog();
	virtual BOOL DestroyWindow();
	afx_msg void OnTimer(UINT_PTR nIDEvent);
	//afx_msg void OnClose();
	afx_msg void OnNMCustomdrawProgress1(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnBnClickedBtnClose();
};
